<?php

	session_start();

	class Admin_Controller {

		function logout() {
			session_destroy();
			header("location:../member.php");
		}

		function Msg($string) {
	  		echo '<script language="javascript">';
			echo 'alert("'.$string.'");';
			echo '</script>';
	  	}

	  	function errorMsg($string) {
	  		echo '<script language="javascript">';
			echo 'alert("'.$string.'");';
			echo 'history.back();';
			echo '</script>';
	  	}

	  	function lengthError($string, $name) {
	  		if (strlen($string) == 0) {
	  			echo '<script language="javascript">';
				echo 'alert("'.$name.'不得為空！！");';
				echo 'history.back();';
				echo '</script>';
	  		}
	  	}
	}

?>